package mju.cxf.entity;


import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 出售表表实例
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("cxf_sales") // 表示对应的数据库表名为
public class Sales {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;         // 出售ID

    @TableField("sales_number")
    private String salesNumber;     // 出售单号

    @TableField("product_id")
    private Integer productId;     // 出售商品ID

    @TableField("specifications_id")
    private Integer specificationsId;     // 出售商品规格ID

    @TableField("cdKey")
    private String cdKey;     // 卡密

    @TableField("key_out_time")
    private Date keyOutTime;     // 卡密过期时间

    @TableField("user_id")
    private Integer userId;     // 出售用户id

    @TableField("employee_id")
    private Integer employeeId;     // 审核员工ID

    @TableField("emp_sales_id")
    private Integer empSalesId;     // 员工出售id

    @TableField("amount")
    private Double amount;     // 总金额


    @TableField("shelf_days")
    private Integer shelfDays;  //上架天数

    @TableField(value = "shelf_time")
    private Date shelfTime; //   上架时间

    @TableField("after_id")
    private Integer afterId;     // 出售商品ID

    @TableField("order_number")
    private String orderNumber;  //出售对应订单号

    @TableField(value = "sales_time")
    private LocalDateTime salesTime; // 出售时间

    @TableField(value = "create_time")
    private LocalDate createTime; // 创建时间

    @TableField("state")
    private Integer state;     // 状态

}
